﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DepartmentEntry.aspx.cs" Inherits="UniversityManagementSystem.UI.DepartmentEntry" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="fontStyle">
        <asp:Label ID="Label1" runat="server" Text="Department Code"  CssClass="labelAlignment"></asp:Label>
        &nbsp;&nbsp;&nbsp;
        &nbsp;
        <asp:TextBox ID="departmentCodeTextBox" runat="server" CssClass="textBoxAlignment"></asp:TextBox>
        <asp:RequiredFieldValidator ID="departmentCodeRequiredFieldValidator" 
            runat="server" ControlToValidate="departmentCodeTextBox" 
            ErrorMessage="Department Code is required" ForeColor="Red">*</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="Department Name"  CssClass="labelAlignment" ></asp:Label>
        &nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="departmentNameTextBox" runat="server"  CssClass="textBoxAlignment"></asp:TextBox>
        <asp:RequiredFieldValidator ID="departmentNameRequiredFieldValidator" 
            runat="server" ControlToValidate="departmentNameTextBox" 
            ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
        <br />
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button 
            ID="saveDepartmentButton" runat="server" 
            onclick="saveDepartmentButton_Click" Text="Save" Width="100px" CssClass="button" />
        &nbsp;&nbsp;&nbsp;
        <asp:Button 
            ID="showAllDepartmentButton" runat="server" 
            onclick="showAllDepartmentButton_Click" Text="Show All Department" 
            Width="150px" style="margin-left: 4px" 
            CausesValidation="False" CssClass="button" />
        <br />
        <br />
        <asp:ValidationSummary ID="departmentEntryValidationSummary" runat="server" 
            ForeColor="Red" ShowMessageBox="True" ShowSummary="False" Width="122px" />
        <asp:Label ID="messageLabel" runat="server" Text=""></asp:Label>
        
    </div>

    </asp:Content>
